package org.example.elm_springboot.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.example.elm_springboot.mapper.UserMapper;
import org.example.elm_springboot.po.User;
import org.example.elm_springboot.service.UserService;

@Service
public class UserServiceImpl implements UserService {
    
    @Autowired
    private UserMapper userMapper;
    
    @Override
    public User getUserByIdByPass(String userId, String password) {
        return userMapper.getUserByIdByPass(userId, password);
    }
    
    @Override
    public int getUserById(String userId) {
        return userMapper.getUserById(userId);
    }
    
    @Override
    public int saveUser(User user) {
        return userMapper.saveUser(user);
    }
} 